Package com.stytch.sdk.common

This package contains resources shared between our B2B and Consumer SDKs, including helpful typealiases, utility functions, data models, and internal support code.

Types

Link copied to clipboard
typealias BaseResponse = StytchResult<BasicData>

Type alias for StytchResult used for basic responses

Link copied to clipboard
interface DeeplinkHandledStatus

A class representing the three states of a deeplink handled by StytchClient.handle() / StytchB2BClient.handle()

Link copied to clipboard
sealed class DeeplinkResponse
Link copied to clipboard
sealed class StytchExceptions : Exception

Exception wrapper meant for use with Stytch-specific exceptions and provides a straightforward way to encompass any possible errors that come from the SDK.

Link copied to clipboard
sealed class StytchResult<out T>

Provides a wrapper for responses from the Stytch API

Link copied to clipboard
interface TokenType

An interface representing the supported token types that we can extract from a deeplink

Functions

Link copied to clipboard
fun String.toStytchErrorType(): StytchErrorType?

Converts a string to an error type supported by Stytch